package com.tl.wechat.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * 微信支付配置
 * @author 15110
 *
 */
@Component
@ConfigurationProperties(prefix = "wechat.pay")
public class WeChatPayProperties {
	
	private String appId;
    private String mchId;
    private String mchKey;
    private String apiV3Key;
    private String serialNo;
    private String privateKeyPath;
    private String privateCertPath;
    private String keyPath;
    private String notifyUrl;
    
    private boolean useSandbox;
    
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	public String getMchId() {
		return mchId;
	}
	public void setMchId(String mchId) {
		this.mchId = mchId;
	}
	public String getMchKey() {
		return mchKey;
	}
	public void setMchKey(String mchKey) {
		this.mchKey = mchKey;
	}
	public String getApiV3Key() {
		return apiV3Key;
	}
	public void setApiV3Key(String apiV3Key) {
		this.apiV3Key = apiV3Key;
	}
	public String getSerialNo() {
		return serialNo;
	}
	public void setSerialNo(String serialNo) {
		this.serialNo = serialNo;
	}
	public String getPrivateKeyPath() {
		return privateKeyPath;
	}
	public void setPrivateKeyPath(String privateKeyPath) {
		this.privateKeyPath = privateKeyPath;
	}
	public String getPrivateCertPath() {
		return privateCertPath;
	}
	public void setPrivateCertPath(String privateCertPath) {
		this.privateCertPath = privateCertPath;
	}
	public String getKeyPath() {
		return keyPath;
	}
	public void setKeyPath(String keyPath) {
		this.keyPath = keyPath;
	}
	public String getNotifyUrl() {
		return notifyUrl;
	}
	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}
	public boolean isUseSandbox() {
		return useSandbox;
	}
	public void setUseSandbox(boolean useSandbox) {
		this.useSandbox = useSandbox;
	}
}
